package com.hc.componentspringboot.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

@TableName("t_comment")
public class Remark {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("article_id")
    private Integer articleId;
    private String content;
    private String author;

//    @TableField(fill = FieldFill.INSERT) //@TableField可指定fill值类型,表明在该条件下某字段的默认处理
//    private Date createdTime;
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private Date modifiedTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "Remark{" +
                "id=" + id +
                ", articleId=" + articleId +
                ", content='" + content + '\'' +
                ", author='" + author + '\'' +
                '}';
    }
}
